package com.yoshino.facade;

/**
 * @author yoshino
 **/
public class Popcorn {

    // 单例模式，使用饿汉式
    private static Popcorn instance = new Popcorn();

    private Popcorn() {}

    public static Popcorn getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("popcorn on");
    }
    public void off() {
        System.out.println("popcorn off");
    }
    public void pop() {
        System.out.println("popcorn is popping");
    }
}
